package com.lanou.bbs.service.impl;

import com.lanou.bbs.dao.FloorDao;
import com.lanou.bbs.entity.BbsFloor;
import com.lanou.bbs.service.FloorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 张贵宏
 * @Date 18/6/27 上午9:38
 */
@Service
public class FloorServiceImpl implements FloorService {
    @Autowired
    private FloorDao floorDao;

    @Override
    public void sendFloor(BbsFloor bbsFloor) {
        floorDao.sendFloor(bbsFloor);
    }

    @Override
    public List<BbsFloor> findByRid(int rid) {
        return floorDao.findByrid(rid);
    }
}
